import request from '@/api/request.js'

export function invoiceHeader(param) {
    return request({
        url: 'wflow/ocr/invoiceHeader',
        method: 'POST',
        data: param
    })
}
export function invoiceHeaderSelect() {
    return request({
        url: 'wflow/ocr/invoiceHeader',
        method: 'GET'
    })
}
export function invoiceHeaderDelete(id) {
    return request({
        url: `wflow/ocr/invoiceHeader/${id}`,
        method: 'DELETE'
    })
}

export function invoiceHeaderUpdate(param) {
    return request({
        url: 'wflow/ocr/invoiceHeader',
        method: 'PUT',
        data: param
    })
}

// 手动添加发票
export function invoiceAdd(param) {
    return request({
        url: 'wflow/ocr/invoice',
        method: 'POST',
        data: param
    })
}
export default {
    invoiceHeader,
    invoiceHeaderSelect,
    invoiceHeaderDelete,
    invoiceHeaderUpdate,
    invoiceAdd
}
